<template name="zpic">
	<view class="col-arrange">
		<text class="question" if="que.length != 0">{{que}}</text>
		<view class="center-view">
			<image :src="imgSrc" :style="{width:width,height:height}"  />
		</view>
	</view>
</template>
<script>
	export default {
		name : "zpicture",
		data() {
			return {
				imgSrc : "",
				// input_height : ""
				// question : "问题"
				errorText : "",
			};
		},
		props : {
			compType : {
				type : String,
				default : "zpic"
			},
			srcJson : {
				type : Object,
				default : {}
			},
			width : {
				type : String,
				default : ""
			},
			height : {
				type : String,
				default : ""
			},
			que : {
				type : String,
				default : ""
			}
		},
		created : function(){
			var serverConfig = this.serverConfig;
			this.imgSrc = 'http://' + serverConfig[this.srcJson.hostId] + '/pic/' + this.srcJson.filename;
		},
		methods: {
			
		}
	}
</script>

<style>
	@import "../../..//common/zcss.css";
	.question{
		display: inline;
		font-size: 15upx;
	}
</style>
